package cn.iocoder.yudao.module.scrm.controller.admin.marketing.vo.operation;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_SPECIAL;

/**
 * @Author LiZhiMin
 * @Date 2024/8/12 12:25
 */
@Schema(description = "管理后台 - 进行访问操作入参 Request VO")
@Data
public class VisitorReqVO {

    @Schema(description = "营销内容表id", example = "3271")
    private String contentId;

    @Schema(description = "链路id(保留)", example = "18792")
    @NotNull(message = "链路id(保留)不能为空")
    private String linkId;

    @Schema(description = "转发表id", example = "7485")
    private String transmitId;

    @Schema(description = "访问来源0企微 1微信")
    private String source;

    @Schema(description = "访客昵称", example = "李四")
    //@NotNull(message = "访客昵称不能为空")
    private String name;

    @Schema(description = "访客电话")
    @NotNull(message = "访客电话不能为空")
    private String phone;

    @Schema(description = "微信openId")
    //@NotNull(message = "微信openId不能为空")
    private String openId;

    @Schema(description = "访客微信头像", example = "18792")
    //@NotNull(message = "微信头像不能为空")
    private String weChatAvatar;

    @Schema(description = "负责人姓名（访客访问那一刻所属负责人）", example = "王五")
    private String principalName;

    @Schema(description = "分享类型默认0 员工 1访客", example = "1")
    private String materialType;

    @Schema(description = "开始访问时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_SPECIAL)
    @NotNull(message = "开始访问时间-不能为空")
    private LocalDateTime startTime;

    @Schema(description = "结束访问时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND_SPECIAL)
    @NotNull(message = "结束访问时间-不能为空")
    private LocalDateTime endTime;

    @Schema(description = "访问时长(秒)")
    @NotNull(message = "访问时长-不能为空")
    private Integer lookTime;

    @Schema(description = "浏览内容比例")
    @NotNull(message = "浏览内容比例-不能为空")
    private Integer percentage;


}
